package com.ht;


import java.util.concurrent.TimeUnit;

/**
 * 无用
 * @author zhangfc
 * @date 2021/11/2 19:12
 */
class Attack{
    public void soldier() throws InterruptedException {
        for (int i = 0; i < 57000000; i++) {
            TimeUnit.MILLISECONDS.sleep(500);
            System.out.println("若有战,召必回!");
        }
    }
}
public class ImSoldier {
    public static void main(String[] args) throws InterruptedException {
        Attack attack = new Attack();
        StringBuffer str = new StringBuffer("别看我现在是一个敲代码的.\n");
        str.append("信号很强烈,回去拿起95就是干.");
        System.out.println(str.toString());
        TimeUnit.SECONDS.sleep(2);
        new Thread(() -> {
            try {
                attack.soldier();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }).start();
    }
}
